package com.issac.vhr.controller.config;

import com.issac.vhr.entity.Menu;
import com.issac.vhr.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/*
* 系统菜单配置
*
* */

@RestController
@RequestMapping("/system/config")
public class SystemConfigController {
    @Autowired
    MenuService menuService;
    @GetMapping("/menu")//用后端正登录的数据来查询，不要信任前端数据
    public List<Menu> getMenuByHrId(){
        return menuService.getMenuByHrId();
    }
}
